import request from '@/utils/requestExam'

//查询部门代号表
export function getDeptCodingList(query){
  return request({
    url: "/api/uf/boostor/exam/question/ExamDeptCodingRest/searchByPage/v1",
    method: "post",
    data: query
  })
}

//通过部门id查询部门代号信息
export function getDeptCodingByDeptId(deptId){
  return request({
    url: "/api/uf/boostor/exam/question/ExamDeptCodingRest/deptId/" + deptId,
    method: "get"
  })
}

// 根据部门代号ID查询部门代号详细信息
export function getDeptCodingByDeptCodeId(deptCodeId) {
  return request({
    url: '/api/uf/boostor/exam/question/ExamDeptCodingRest/deptCodeId/' + deptCodeId,
    method: 'get'
  })
}

//新增
export function addDeptCoding(data){
  return request({
    url: "/api/uf/boostor/exam/question/ExamDeptCodingRest/add/v1",
    method: "post",
    data: data
  })
}

//修改
export function updateDeptCoding(data){
  return request({
    url: "/api/uf/boostor/exam/question/ExamDeptCodingRest/edit/v1",
    method: "put",
    data: data
  })
}
//删除
export function deleteDeptCoding(deptCodeIds){
  return request({
    url: "/api/uf/boostor/exam/question/ExamDeptCodingRest/remove/" + deptCodeIds,
    method: "delete"
  })
}
